package table;

import java.util.ArrayList;
import java.util.List;

public class sevelet {
	private static dao jd = new dao();
	public List<pojoacc> selectname(String name,Integer hang) {
		List<pojoacc> a = new ArrayList<pojoacc>();
		if(name.equals(null) || name.length()==0) {
			a = jd.select(hang, 5);
		}else {
			a = jd.selectname(name, hang, 5);
		}
		
		return a;
	}
}
